<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>五子棋</title>
    <link rel="stylesheet" href="index.css" />
    <link rel="icon" href="images/白.png" mce_href="images/favicon-16x16.png" type="image/x-icon">
</head>

<body>
    <center>
        <!--主界面-->
        <div id="mainScreen" class=" container-lg container-md">
            <!--大标题-->
            <a href="" class="mainLogo"></a>
            <h1 class="mainTitle">简易五子棋</h1>
            <!--结果文字，对局结束后跳出-->

            <!-- 五个棋子连到一起会出现一条红色线，我们管这个红色线叫strike -->
            <div id="strike" class="strike"></div>
            <!--功能按钮-->
            <div class="fButtons">
                <input type="button" value="开始" class="start" @click="startInit()" v-show="showBefore" />
                <input type="button" value="悔棋" class="regret" @click="regret()" v-show="showIng" />
                <input type="button" value="投降" class="giveUp" @click="giveUp()" v-show="showIng" />
                <input type="button" value="重新开始" class="playAgain" @click="playAgain()" v-show="showIng" />
                <input type="button" value="关闭音乐" class="closeMusic" @click="closeMusic()" v-show="MusicClose" />
                <input type="button" value="打开音乐" class="openMusic" @click="openMusic()" v-show="MusicOpen" />
            </div>
            <br />
            <!--游戏主界面-->
            <div class="mainGame">
                <canvas id="goBangCanvas" ref="gbcanvas" :width="screenWidth" :height="screenHeight"></canvas>
            </div>
            <!--播放音乐-->
            <audio id="bgmusic" src="music/麦振鸿 - 混天棋盘.mp3" autoplay="true" loop="true" controls=stopbutton style="display:none;"></audio>
        </div>
    </center>
    <script src="dist/vue.js"></script>
    <script src="index.js"></script>
</body>

</html>